Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
blocks access to /data with the docker image
  • Loading branch information
conradkleinespel committed Sep 5, 2016
1 parent aa42fd8 commit a08b24df4661086b9b7bd83846fdb6836374d54c
Showing 1 changed file with 10 additions and 2 deletions.
@@ -2,8 +2,16 @@ FROM ubuntu:14.04

RUN apt-get update && \
apt-get install -y apache2 php5 php5-sqlite php5-curl && \
apt-get clean && rm -rf /var/lib/apt/lists/* && \
echo "ServerName localhost" >> /etc/apache2/apache2.conf
apt-get clean && rm -rf /var/lib/apt/lists/*

RUN echo \
"ServerName localhost\n" \
"<Directory /var/www/html/data/>\n" \
" Deny from all\n" \
"</Directory>\n" \
"<Directory /var/www/html/data/favicons/>\n" \
" Allow from all\n" \
"</Directory>\n" >> /etc/apache2/apache2.conf

COPY . /var/www/html

0 comments on commit a08b24d

Please sign in to comment.